package com.wlcorp.forcazamis.dao.confirm.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ibatis.dao.client.DaoException;
import com.wlcorp.forcazamis.dao.confirm.IConfirmDetailDAO;
import com.wlcorp.forcazamis.domain.confirm.ConfirmDetail;

public class ConfirmDetailDAOImpl extends HibernateDaoSupport implements
		IConfirmDetailDAO {

	@SuppressWarnings("unchecked")
	public List getConfirmDetailList(ConfirmDetail confirmDetail)
			throws DaoException {
		return getHibernateTemplate().find("from ConfirmDetail as confirmDetail where confirmDetail.deleteFlag=false");
	}

	public void saveConfirmDetail(ConfirmDetail confirmDetail)
			throws DaoException {
//		getHibernateTemplate().flush();
//		getHibernateTemplate().clear();
//		getHibernateTemplate().saveOrUpdate(confirmDetail);
		getHibernateTemplate().merge(confirmDetail);
	}

}
